package com.yanqu.road.server.gameplayer.module.activity.tomb.entity;

import com.yanqu.road.dao.dbV2.BaseEntity;
import com.yanqu.road.dao.dbV2.IField;
import com.yanqu.road.dao.dbV2.ITable;
import com.yanqu.road.dao.dbV2.serializer.DInt;
import com.yanqu.road.dao.dbV2.serializer.DLong;
import com.yanqu.road.dao.dbV2.serializer.DObject;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

//秦始皇陵 遗物系统用户信息
@ITable(tableName = "t_u_activity_tomb_relic")
public class DbTombRelic extends BaseEntity {
    public static DbTombRelic newInstance(){return new DbTombRelic();}

    @IField(isPrimaryKey = true, fieldName = "user_id", comment = "用户ID", serializer = DLong.class)
    public long userId;
    @IField(isPrimaryKey = true,fieldName = "activity_id",comment = "活动id",serializer = DInt.class)
    public int activityId;
    @IField(fieldName = "relic_item",comment = "持有遗物",serializer = DObject.class)
    public Map<Integer,TombRelic> relicItemMap =new ConcurrentHashMap<>();
    @IField(fieldName = "score",comment = "本次活动积分",serializer = DLong.class)
    public long score;

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public Map<Integer, TombRelic> getRelicItemMap() {
        return relicItemMap;
    }

    public void setRelicItemMap(Map<Integer, TombRelic> relicItemMap) {
        this.relicItemMap = relicItemMap;
    }

    public long getScore() {
        return score;
    }

    public void setScore(long score) {
        this.score = score;
    }


}
